;PRINT A+B
DATAS  SEGMENT
    A	DB	5
    B	DB	4
DATAS  ENDS

STACKS  SEGMENT
      DB  128 DUP (?)
STACKS  ENDS

CODES  SEGMENT
     ASSUME    CS:CODES,DS:DATAS,SS:STACKS
START:
    MOV AX,DATAS
    MOV DS,AX
    ;INIT
    MOV AL,A
    ADD AL,30H
    ;AL=A+'0'
    MOV DL,AL
    MOV AH,2
    INT 21H
    ;PUTCHAR AL
    MOV DL,'+'
    MOV AH,2
    INT 21H
    ;PUTCHAR '+'
    MOV AL,B
    ADD AL,30H
    ;AL=B+'0'
    MOV DL,AL
    MOV AH,2
    INT 21H
    ;PUTCHAR AL
    MOV DL,'='
    MOV AH,2
    INT 21H
    ;PUTCHAR '='
    MOV AL,A
    ADD AL,B
    ADD AL,30H
    ;AL=A+B+'0'
    MOV DL,AL
    MOV AH,2
    INT 21H
    ;PUTCHAR AL
    MOV AH,4CH
    INT 21H
CODES  ENDS
    END  START



